Change the few examples that use a full GTK_ enum value in .ui files.
authorRobert Ancell <robert.ancell@canonical.com>
Mon, 8 Jul 2019 03:52:28 +0000 (15:52 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Mon, 8 Jul 2019 03:52:28 +0000 (15:52 +1200)
Lowercase versions work just as well and are much more readable.

gtk/gtksizegroup.c
gtk/gtkwidget.c
testsuite/gtk/builder.c

index b74edf5109ddc9a38fea9d0465c9aa358817bd5e..84dbe46e77c0f985c2884d805a89b4d94dd3e89f 100644 (file)
@@ -93,7 +93,7 @@
  * An example of a UI definition fragment with GtkSizeGroup:
  * |[
  * <object class="GtkSizeGroup">
- *   <property name="mode">GTK_SIZE_GROUP_HORIZONTAL</property>
+ *   <property name="mode">horizontal</property>
  *   <widgets>
  *     <widget name="radio1"/>
  *     <widget name="radio2"/>
index 42ba75037581fe85d624c22573a611cabe7a7b64..db3b4c3e94629c90d5dee5e1b73a2051290c8a5c 100644 (file)
  * |[
  * <interface>
  *   <template class="FooWidget" parent="GtkBox">
- *     <property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
+ *     <property name="orientation">horizontal</property>
  *     <property name="spacing">4</property>
  *     <child>
  *       <object class="GtkButton" id="hello_button">
index 0b9d928b478f154834c64efe60f4e997364bf16c..9c3b16f17e8d871d2d194c68b13bb5bf81bc98b1 100644 (file)
@@ -360,7 +360,7 @@ test_sizegroup (void)
   const gchar buffer1[] =
     "<interface domain=\"test\">"
     "  <object class=\"GtkSizeGroup\" id=\"sizegroup1\">"
-    "    <property name=\"mode\">GTK_SIZE_GROUP_HORIZONTAL</property>"
+    "    <property name=\"mode\">horizontal</property>"
     "    <widgets>"
     "      <widget name=\"radio1\"/>"
     "      <widget name=\"radio2\"/>"
@@ -383,7 +383,7 @@ test_sizegroup (void)
   const gchar buffer2[] =
     "<interface domain=\"test\">"
     "  <object class=\"GtkSizeGroup\" id=\"sizegroup1\">"
-    "    <property name=\"mode\">GTK_SIZE_GROUP_HORIZONTAL</property>"
+    "    <property name=\"mode\">horizontal</property>"
     "    <widgets>"
     "    </widgets>"
     "   </object>"
@@ -391,14 +391,14 @@ test_sizegroup (void)
   const gchar buffer3[] =
     "<interface domain=\"test\">"
     "  <object class=\"GtkSizeGroup\" id=\"sizegroup1\">"
-    "    <property name=\"mode\">GTK_SIZE_GROUP_HORIZONTAL</property>"
+    "    <property name=\"mode\">horizontal</property>"
     "    <widgets>"
     "      <widget name=\"radio1\"/>"
     "      <widget name=\"radio2\"/>"
     "    </widgets>"
     "  </object>"
     "  <object class=\"GtkSizeGroup\" id=\"sizegroup2\">"
-    "    <property name=\"mode\">GTK_SIZE_GROUP_HORIZONTAL</property>"
+    "    <property name=\"mode\">horizontal</property>"
     "    <widgets>"
     "      <widget name=\"radio1\"/>"
     "      <widget name=\"radio2\"/>"
@@ -833,7 +833,7 @@ test_construct_only_property (void)
   const gchar buffer[] =
     "<interface>"
     "  <object class=\"GtkWindow\" id=\"window1\">"
-    "    <property name=\"type\">GTK_WINDOW_POPUP</property>"
+    "    <property name=\"type\">popup</property>"
     "  </object>"
     "</interface>";
   const gchar buffer2[] =